﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace DDBS_Server.Models
{
    public class SamplesRequest
    {
        public Sample simSample { get; set; }
        public double tolerance { get; set; }
        public float ratioTolerance { get; set; }

        public SamplesRequest() { }

        SamplesRequest(Sample simSample, double tolerance, float ratioTolerance)
        {
            this.simSample = simSample;
            this.tolerance = tolerance;
            this.ratioTolerance = ratioTolerance;
        }

        // JSON structure
        /*
            {
              "simSample": {
                "Name": "name",
                ...
                "Peaks": [
                  {
                    "M": 4,
                    "V": 160
                  },
                  ...
                ]
              },
              "tolerance": 0.5
              "ratioTolerance": 0.3
            }        
        */

    }
}